# from rest_framework.generics import ListAPIView
from utils.viewsets import ListAPIView
from apps.HttpTestcase.filters import TestsuiteTestcaseReportsFilters
from apps.HttpTestcase.models import TestsuiteTestcaseReports
from apps.HttpTestcase.serializers import TestsuiteTestcaseReportsSerializer
from rest_framework import permissions
from rest_framework.response import Response


class TestsuiteTestcaseReportsViewSet(ListAPIView):
    filter_class = TestsuiteTestcaseReportsFilters
    queryset = TestsuiteTestcaseReports.objects.filter(is_delete=False)
    serializer_class = TestsuiteTestcaseReportsSerializer
    # 指定权限类
    # permission_classes = [permissions.IsAuthenticated]

    # def list(self, request, *args, **kwargs):
    #     res = super().list(request, *args, **kwargs)
    #     return res
